#include "entityinfo.h"
#include <typeinfo>


void GetEntityCaption( CEntity* e, QString & out )
{
    if( !e )
        return;
    if( e->Name().length() != 0 )
    {
        out = "\"" + e->Name() + "\" - ";
    }

    out += typeid(*e).name();
}
